import { Module } from '@nestjs/common';
import { KnowledgeService } from './knowledge.service';
import { KnowledgeController } from './knowledge.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { KnowledgeEntity } from './knowledge.entity';
import { CategoryEntity } from '../category/category.entity';

@Module({
	imports: [TypeOrmModule.forFeature([KnowledgeEntity, CategoryEntity])],
  controllers: [KnowledgeController],
  providers: [KnowledgeService],
	exports: [KnowledgeService, TypeOrmModule],
})
export class KnowledgeModule {}
